From 4e5c048aea6a88996202f27a7163cf650a4f5e37 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Mon, 16 Oct 2006 00:10:57 +0000 Subject: [PATCH] (bug 3015) Add CSS ids to subcategory and page sections on category pages --- RELEASE-NOTES | 1 + includes/CategoryPage.php | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9f523f156a..59ba43d24e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -50,6 +50,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Friendlier check for PHP 5 in command-line scripts; it's common for parallel PHP 4 and 5 installations to interfere on the command-line. * Fix regression in autoconfirm permission check +* (bug 3015) Add CSS ids to subcategory and page sections on category pages == Languages updated == diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php index e55d29768e..03fbebc731 100644 --- a/includes/CategoryPage.php +++ b/includes/CategoryPage.php @@ -236,18 +236,22 @@ class CategoryViewer { $r = ''; if( count( $this->children ) > 0 ) { # Showing subcategories + $r .= "
\n"; $r .= '

' . wfMsg( 'subcategories' ) . "

\n"; $r .= wfMsgExt( 'subcategorycount', array( 'parse' ), count( $this->children) ); $r .= $this->formatList( $this->children, $this->children_start_char ); + $r .= "\n
"; } return $r; } function getPagesSection() { $ti = htmlspecialchars( $this->title->getText() ); - $r = '

' . wfMsg( 'category_header', $ti ) . "

\n"; + $r = "
\n"; + $r .= '

' . wfMsg( 'category_header', $ti ) . "

\n"; $r .= wfMsgExt( 'categoryarticlecount', array( 'parse' ), count( $this->articles) ); $r .= $this->formatList( $this->articles, $this->articles_start_char ); + $r .= "\n
"; return $r; } -- 2.20.1